package com.cqie.practicaltraining.controller;

import com.cqie.practicaltraining.config.result.R;
import com.cqie.practicaltraining.service.impl.DatatypeServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/data")
@Api(value = "数据类型管理")
public class dataTypeController {
    @Autowired
    private DatatypeServiceImpl datatypeService;
    @GetMapping("/getAllDatatype")
    public R getAllDatatype() {
        return datatypeService.getAllDatatype();
    }
}
